import pandas as pd, altair as alt
url = "https://raw.githubusercontent.com/SpencerShelton/Test/master/games.csv"
games = pd.read_csv(url)
alt.data_transformers.enable('default', max_rows=None)
This dataset is created from a set of chess games from the website Lichess.org. I am interested in exploring the categorical variables of opening_name and winner and the categorical variables turns and white_rating
alt.Chart(games).transform_density(
'white_rating',
as_=['white_rating', 'density'],
).mark_area().encode(
x="white_rating:Q",
y='density:Q',
)